package com.help.knowhelps.utility;

import java.util.TimerTask;

public abstract class Task extends TimerTask {

	private boolean isRunning;
    
    @Override
    public void run() {
    }
    
    public void setRunning(boolean run)
    {
        isRunning = run;
    }
    public boolean isRunning()
    {
        return isRunning;
    }
    
    public boolean cancel()
    {
        isRunning = false;
        return super.cancel();
    }

}
